<?php
session_start();
include_once("function_right.php");
if(!JudgeUserRight()) return FALSE;
?>

<?php
include_once "function_vpn_ssl.php";

$in_array['Name'] = $_POST['name'];

$ssl = new CVPN_SSL_Client();
$ssl -> CreateCrtUser($in_array['Name']);
$ssl -> Apply();

include_once "function_misc_log.php";
logger("Add", $in_array, "SSL_VPN_Client");

include "function_web_misc.php";
PrintSuccessPageAndJump('vpn_ssl_client_list.php');
//echo("<meta http-equiv='refresh'content=0;URL='vpn_ssl_client_list.php'>");

?>
